package kz.home.gui;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import java.util.Hashtable;

/**
 * <strong>title</strong>
 * <p> describe
 *
 * @author: Danik <br>
 * Date: 29.07.2009  <br>
 * Time: 16:51:41  <br>
 */
public class TestMidlet extends MIDlet {
    protected Display display;
    protected MainForm mainForm;
    protected PresentForm presentForm;

    protected void startApp() throws MIDletStateChangeException {
        Hashtable table = new Hashtable();
        display = Display.getDisplay(this);

        presentForm = new PresentForm();
        mainForm = new MainForm(null, display, table);

        display.setCurrent(presentForm);

        try { Thread.sleep(2000); } catch (InterruptedException e) { /**/}
        
        display.setCurrent(mainForm);
    }

    protected void pauseApp() {
    }

    protected void destroyApp(boolean b) throws MIDletStateChangeException {
        
    }
}
